﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="StudentManage.aspx.cs" Inherits="StudentManagerPro.Student.StudentManage" %>

<%@ Register Src="~/UserControls/Query.ascx" TagPrefix="uc1" TagName="Query" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Styles/StudentManage.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <%--  <div id="QueryDiv">
        请选择要查询的班级：<asp:DropDownList ID="ddlClass" Width="120px" runat="server">
        </asp:DropDownList>
        <asp:Button ID="btnQuery" runat="server" Text="提交查询" OnClick="btnQuery_Click" />
        <asp:Literal ID="ltaMsg" runat="server"></asp:Literal>
    </div>--%>
    <uc1:Query runat="server" id="Query" />



<%--    <asp:DataList ID="dlstuInfo" runat="server" RepeatColumns="2">
        <ItemTemplate>
            <div class="stuInfo">
                <div class="stuImg">
                    <asp:Image ID="imgStu" runat="server" Height="136px" ImageUrl='<%#Eval("StudentId","~/Images/NewImages/{0}.jpg") %>' Width="150px" />
                </div>
                <div class="stuItem">
                    <span>姓名：</span><span style="width: 80px;"><%# Eval("StudentName")%></span>&nbsp;&nbsp;<span>性别：<%# Eval("Gender")%></span></div>
                <div class="stuItem">
                    <span>班级：</span><span style="width: 80px;"><%# Eval("ClassName")%></span>&nbsp;&nbsp;<span>出生日期：<%# Eval("Birthday", "{0:yyyy-MM-dd}")%></span></div>
                <div class="stuItem">
                    <span>家庭住址：</span><span style="width: 80px;"><%# Eval("StudentAddress")%></span></div>
                <div class="stuItem">
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("StudentId","~/Student/EditStudent.aspx?StudentId={0}")%>'  ForeColor="Blue">修改信息</asp:HyperLink>
                    &nbsp;
                    <asp:LinkButton ID="btnDel" runat="server" CommandArgument='<%# Eval("StudentId")%>'>删除学员</asp:LinkButton>
                </div>
            </div>
        </ItemTemplate>
    </asp:DataList>--%>

    <asp:Repeater ID="dlstuInfo" runat="server">
        <ItemTemplate>
              <div class="stuInfo">
                <div class="stuImg">
                    <asp:Image ID="imgStu" runat="server" Height="136px" ImageUrl='<%#Eval("StudentId","~/Images/NewImages/{0}.jpg") %>' Width="150px" />
                </div>
                <div class="stuItem">
                    <span>姓名：</span><span style="width: 80px;"><%# Eval("StudentName")%></span>&nbsp;&nbsp;<span>性别：<%# Eval("Gender")%></span></div>
                <div class="stuItem">
                    <span>班级：</span><span style="width: 80px;"><%# Eval("ClassName")%></span>&nbsp;&nbsp;<span>出生日期：<%# Eval("Birthday", "{0:yyyy-MM-dd}")%></span></div>
                <div class="stuItem">
                    <span>家庭住址：</span><span style="width: 80px;"><%# Eval("StudentAddress")%></span></div>
                <div class="stuItem">
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("StudentId","~/Student/EditStudent.aspx?StudentId={0}")%>'  ForeColor="Blue">修改信息</asp:HyperLink>
                    &nbsp;
                    <asp:LinkButton ID="btnDel" runat="server" CommandArgument='<%# Eval("StudentId")%>' OnClientClick='return confirm("确认删除吗？")' onclick="btnDel_Click">删除学员</asp:LinkButton>
                </div>
            </div>
        </ItemTemplate>           

    </asp:Repeater>


<%--     <div class="stuInfo">
        <div class="stuImg">
            <asp:Image ID="imgStu" runat="server" Height="136px" Width="150px" ImageUrl="~/Images/Student/100001.jpg" />
        </div>
        <div class="stuItem">
            <span>姓名：</span><span style="width: 80px;">待定</span>&nbsp;&nbsp;<span>性别：待定</span>
        </div>
        <div class="stuItem">
            <span>班级：</span><span style="width: 80px;">待定</span>&nbsp;&nbsp;<span>出生日期：待定</span>
        </div>
        <div class="stuItem">
            <span>家庭住址：</span><span style="width: 80px;">待定</span>
        </div>
        <div class="stuItem">
            <asp:HyperLink ID="HyperLink1"
                runat="server" ForeColor="Blue">修改信息</asp:HyperLink>&nbsp;
            <asp:LinkButton ID="btnDel"
                runat="server">删除学员</asp:LinkButton>
        </div>
    </div>
     <div class="stuInfo">
        <div class="stuImg">
            <asp:Image ID="Image1" runat="server" Height="136px" Width="150px" ImageUrl="~/Images/Student/100002.jpg" />
        </div>
        <div class="stuItem">
            <span>姓名：</span><span style="width: 80px;">待定</span>&nbsp;&nbsp;<span>性别：待定</span>
        </div>
        <div class="stuItem">
            <span>班级：</span><span style="width: 80px;">待定</span>&nbsp;&nbsp;<span>出生日期：待定</span>
        </div>
        <div class="stuItem">
            <span>家庭住址：</span><span style="width: 80px;">待定</span>
        </div>
        <div class="stuItem">
            <asp:HyperLink ID="HyperLink2"
                runat="server" ForeColor="Blue">修改信息</asp:HyperLink>&nbsp;
            <asp:LinkButton ID="LinkButton1"
                runat="server">删除学员</asp:LinkButton>
        </div>
    </div>
     <div class="stuInfo">
        <div class="stuImg">
            <asp:Image ID="Image2" runat="server" Height="136px" Width="150px" ImageUrl="~/Images/Student/100001.jpg" />
        </div>
        <div class="stuItem">
            <span>姓名：</span><span style="width: 80px;">待定</span>&nbsp;&nbsp;<span>性别：待定</span>
        </div>
        <div class="stuItem">
            <span>班级：</span><span style="width: 80px;">待定</span>&nbsp;&nbsp;<span>出生日期：待定</span>
        </div>
        <div class="stuItem">
            <span>家庭住址：</span><span style="width: 80px;">待定</span>
        </div>
        <div class="stuItem">
            <asp:HyperLink ID="HyperLink3"
                runat="server" ForeColor="Blue">修改信息</asp:HyperLink>&nbsp;
            <asp:LinkButton ID="LinkButton2"
                runat="server">删除学员</asp:LinkButton>
        </div>
    </div>
     <div class="stuInfo">
        <div class="stuImg">
            <asp:Image ID="Image3" runat="server" Height="136px" Width="150px" ImageUrl="~/Images/Student/100002.jpg" />
        </div>
        <div class="stuItem">
            <span>姓名：</span><span style="width: 80px;">待定</span>&nbsp;&nbsp;<span>性别：待定</span>
        </div>
        <div class="stuItem">
            <span>班级：</span><span style="width: 80px;">待定</span>&nbsp;&nbsp;<span>出生日期：待定</span>
        </div>
        <div class="stuItem">
            <span>家庭住址：</span><span style="width: 80px;">待定</span>
        </div>
        <div class="stuItem">
            <asp:HyperLink ID="HyperLink4"
                runat="server" ForeColor="Blue">修改信息</asp:HyperLink>&nbsp;
            <asp:LinkButton ID="LinkButton3"
                runat="server">删除学员</asp:LinkButton>
        </div>
    </div>--%>




</asp:Content>
